<?php
	$validation_rules = array(
		"uid" => array(
			"required" => true,
			"minlength" => "4"
		), 
		"pwd" => array(
			"required" => true,
			"minlength" => "4"
		)
	);
?>

<div id="login" class="mod ui-widget-content ui-helper-clearfix ui-corner-all">

	<?php FormHelper::StartForm('login', 'pms_login.html?lwd=1') ?>

        <fieldset class="erro-style-2 ui-widget-content">
            <legend class="ui-widget-header">PMS2.0 Login</legend>

    
    		<?php FormHelper::TextField('uid', '', 'User ID') ?>
    		<?php FormHelper::PassWord('pwd', '', 'Password') ?> 
    
    		<?php FormHelper::SubmitButton('submit', 'Login') ?> 

        </fieldset>


	<?php FormHelper::EndForm() ?>

</div>


<script>
    TVB.util.namespace('TVB.Pdes.Vars');
	TVB.Pdes.Vars.validationRules = <?= json_encode($validation_rules) ?>;
	TVB.Pdes.Vars.validationForm = $('form[name=login]');
</script>
